<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <meta name="keywords" content="注册">
    <meta name="content" content="注册">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <link type="text/css" rel="stylesheet" href="css/login.css">
    <script type="text/javascript" src="js/jquery1.42.min.js"></script>

</head>
<body class="login_bj">

<c:if test="${not empty msg}">
    <script>
        alert("${msg}");
    </script>
</c:if>

<div class="zhuce_body">
    <div class="logo"><a href="#"></a></div>
    <div class="zhuce_kong">
        <div class="zc">
            <div class="bj_bai">
                <h3>欢迎注册</h3>
                <form action="${pageContext.request.contextPath}/driver/register.do" method="get">
                    <input name="name" type="text" class="kuang_txt name" placeholder="姓名">
                    <input name="sex" type="text" class="kuang_txt sex" placeholder="性别">
                    <input name="phone" type="text" class="kuang_txt phone" placeholder="手机号">
                    <input name="password" type="password" class="kuang_txt possword" placeholder="密码">
                    <input name="email" type="text" class="kuang_txt email" placeholder="邮箱">
                    <select id="warehouseId" name="warehouseId" type="text" class="kuang_txt warehouse_id">

                    </select>

                    <div>
                        <input name="" type="checkbox" value=""><span>已阅读并同意<a href="#" target="_blank"><span
                            class="lan">《XXXXX使用协议》</span></a></span>
                    </div>
                    <input type="submit" class="btn_zhuce" value="注册">

                </form>
            </div>
            <div class="bj_right">
                <p>使用以下账号直接登录</p>
                <a href="#" class="zhuce_qq">QQ注册</a>
                <a href="#" class="zhuce_wb">微博注册</a>
                <a href="#" class="zhuce_wx">微信注册</a>
                <p>已有账号？<a href="login.jsp">立即登录</a></p>

            </div>
        </div>

    </div>

</div>
<script>
    $.ajax({
        url: "queryWareName.do",
        type: "POST",
        dataType: "json",
        success: function (data) {
            var str = "";
            str += "<option value='0' >请选择仓库</option>"
            for (var i = 0; i < data.length; i++) {
                str += "<option value='" + data[i].id + "' >" + data[i].name + "</option>"
            }
            $("#warehouseId").html(str)

        }
    })
</script>


</body>
</html>